package cn.hr.service;

import cn.hr.base.BaseService;
import cn.hr.pojo.PayrollCrew;
import cn.hr.pojo.PayrollDetail;

import java.util.List;

/**
 * 组织人员工资单服务接口
 *
 * @author MO
 */
public interface PayrollCrewService extends BaseService<PayrollCrew> {
    /**
     * 根据组织工资单id添加职员工资单
     *
     * @param poId
     * @return
     * @throws Exception
     */
    boolean insert(Integer poId) throws Exception;

    /**
     * 更新职员工资单详细信息
     *
     * @param payrollCrews
     * @param payrollDetails
     * @return
     * @throws Exception
     */
    boolean update(List<PayrollCrew> payrollCrews, List<PayrollDetail> payrollDetails) throws Exception;
}
